package cn.tedu._02notice.controller;

import cn.tedu._02notice.pojo.dto.UserParam;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@Tag(name = "用户管理")
@RestController
@RequestMapping("v1/user/")
@Slf4j
public class UserController {
    @PostMapping("login")
    @Operation(summary = "用户登录")
    public String login(@RequestBody UserParam userParam){
        log.debug("用户信息---" + userParam);
        return "登录成功";
    }
}
